package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    List<ShoppingCart> getShoppingCartList(ShoppingCart shoppingCart);

    void insert(ShoppingCart cart);

    void addNumber(ShoppingCart cart);

    void deleteByUserId(Long userId);

    void deleteOne(ShoppingCart cart);

    void deleteByDishId(Long id);

    void updateByDishId(ShoppingCart cart);

    void deleteBySetmealId(Long id);

    void updateBySetmealId(ShoppingCart cart);
}
